package kshell.cn.msg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.util.function.Function;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    /**
     * 实现function接口，就可以处理kafka/rabbitmq消息
     * @return
     */
    @Bean
    public Function<String, Object> handle() {
        return String::toUpperCase;
    }

}
